<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>黑马面面-----flex + rem + flexible.js + Less 布局</title>
    <link rel="stylesheet" href="./css/normalize.css">
    <link rel="stylesheet" href="./css/swiper.min.css">
    <link rel="stylesheet" href="./css/index.css">

</head>
<body>
    <!-- 头部模块 -->
    <header class="header">黑马面面</header>
    <!-- 导航栏模块 -->
    <nav class="nav">
        <a href="#" class="item">
            <img src="images/icon1.png" alt="">
            <span>HR面试</span>
        </a>
        <a href="#" class="item">
            <img src="images/icon2.png" alt="">
            <span>笔试</span>
        </a>
        <a href="#" class="item">
            <img src="images/icon3.png" alt="">
            <span>技术面试</span>
        </a>
        <a href="#" class="item">
            <img src="images/icon4.png" alt="">
            <span>模拟面试</span>
        </a>
        <a href="#" class="item">
            <img src="images/icon5.png" alt="">
            <span>面试技巧</span>
        </a>
        <a href="#" class="item">
            <img src="images/icon6.png" alt="">
            <span>薪资查询</span>
        </a>
    </nav>
    <!-- 广告 GO 模块 -->
    <div class="advertisement">
        <img src="images/go.png" alt="">
        <a href="#" class="go"></a>
    </div>
    <!-- 就业指导模块 -->
    <div class="content">
        <div class="con-hd">
            <span class="title">
                <img src="images/i2.png" alt="">
                <span>就业指导</span>
            </span>
            <a href="#">更多>></a>
        </div>
        <div class="employment-bd">
            <!-- 内容区域用swiper制作轮播图-->
            <!-- Swiper -->
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <span class="icon">
                            <img src="images/pic.png" alt="">
                        </span>
                        <p>老师教你应对面试技巧</p>
                    </div>
                    <div class="swiper-slide">
                        <span class="icon">
                            <img src="images/ldh.jpg" alt="">
                        </span>
                        <p>老师教你应对面试技巧</p>
                    </div>
                    <div class="swiper-slide">
                        <span class="icon">
                            <img src="images/3.jpg" alt="">
                        </span>
                        <p>老师教你应对面试技巧</p>
                    </div>
                </div>
            </div>
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </div>
    <!-- 充电学习模块 -->
    <div class="content">
        <div class="con-hd">
            <span class="title">
                <img src="images/i1.png" alt="">
                <span>充电学习</span>
            </span>
            <a href="#">更多>></a>
        </div>
        <div class="study-bd">
            <!-- Swiper -->
            <div class="swiper mySwiper">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <div class="img">
                            <img src="images/pic1.png" alt="">
                        </div>
                        <div class="introduce">说地道英语，告别中式英语</div>
                        <div class="study-num">
                            <span style="color: red;">156</span>人学习
                        </div>
                    </div>
                    <div class="swiper-slide">
                        <div class="img">
                            <img src="images/pic2.png" alt="">
                        </div>
                        <div class="introduce">思维攻略金字塔思维提升写作能力</div>
                        <div class="study-num">
                            <span style="color: red;">125</span>人学习
                        </div>
                    </div>
                    <div class="swiper-slide">
                        <div class="img">
                            <img src="images/pic1.png" alt="">
                        </div>
                        <div class="introduce">说地道英语，告别中式英语</div>
                        <div class="study-num">
                            <span style="color: red;">86</span>人学习
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 底部固定模块 -->
    <footer class="footer">
        <a href="#">
            <img src="images/home.png" alt="">
            <span>首页</span>
        </a>
        <a href="#">
            <img src="images/net.png" alt="">
            <span>技术面试</span>
        </a>
        <a href="#">
            <img src="images/ms.png" alt="">
            <span>模拟面试</span>
        </a>
        <a href="#">
            <img src="images/user.png" alt="">
            <span>我的主页</span>
        </a>
    </footer>
    <script src="./js/flexible.js"></script>
    <script src="./js/swiper.min.js"></script>
    <script>
        // 放在立即执行函数（沙箱函数）里，创建了一个独立的作用域
        // 就业指导模块轮播图
        (function() {
            var swiper = new Swiper('.swiper-container', {
                // 这里面的参数可以去查看API文档
                // slidesPerView 是容器同时显示 slides的数量。
                // 这里虽然有3张图，但有两张图只显示半张，就看似显示两张
                slidesPerView: 2,
                // spaceBetween 是每个slides之间的间隔
                spaceBetween: 30,
                // centeredSlides 参数为true表示最大的那张图在中间，false则在默认的最左侧
                centeredSlides: true,
                // loop为true的情况下，会将第一张图片复制粘贴到最后一张图片后面
                loop: true,
                // 下面是左右两侧切换的箭头
                navigation: {
                    nextEl: ".swiper-button-next",
                    prevEl: ".swiper-button-prev",
                },
            });
        })();
        // 充电学习模块轮播图
        (function() {
            var swiper = new Swiper(".mySwiper", {
                slidesPerView: 2.5,
                spaceBetween: 20,
            });
        })()
    </script>
</body>
</html>